﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

using Telerik.Sitefinity.Pages.Model;

namespace Migration.Classes
{
	public static class MigrationSettings
	{
		public static string RolesProvider = "";
		public static string UsersProvider = "";
		public static string LibrariesProvider = "";
		public static string GenericContentProvider = "";
		public static string NewsProvider = "";
		public static string BlogsProvider = "";
		public static string EventsProvider = "";
		public static string ListsProvider = "";

		public static List<string> Cultures;
		
		public static List<string> WhiteListedUserControlPaths;

		public static Dictionary<string, string> PageNameMappings;
		public static List<PageData> CreatedPages;

		public static bool IsSingleLanguage
		{
			get
			{
				return Cultures.Count > 1;
			}
		}

		public static bool ApplicationRestarted { get; set; }

		public static Page ModulePage { get; set; }

        public static Guid HomePageId { get; set; }

		static MigrationSettings()
		{
			PageNameMappings = new Dictionary<string, string>();
			CreatedPages = new List<PageData>();
			WhiteListedUserControlPaths = new List<string>();

			ApplicationRestarted = false;
		}

		public static bool CreateContentBlocksOnErrors { get; set; }
		public static bool RewriteRegisterTags { get; set; }
		public static bool MigrationCancelled { get; set; }
	}
}
